POV-Ray : Newsgroups : povray.general : Preserving textures through CSG : Re: Preserving textures through CSG Server Time
1 Aug 2024 12:22:41 EDT (-0400)
  Re: Preserving textures through CSG  
From: Ger
Date: 1 Oct 2005 16:04:44
Message: <433eebdb@news.povray.org>
Rarius wrote:

> I am building a cutaway image of a machine, but I am having a problem with
> the textures. If I texture an object then intersect that object, the
> texture of the object is overwritten on those surfaces where the object is
> cut... For example:
> 
> difference
> {
>     cylinder
>     {
>         <-10, 0, 0>
>         <10, 0, 0>
>         1
>         pigment{colour Red}
>     }
>     plane{y, 0}
> }
> 
> I get half a red cylinder, but the part where the plane cuts the sphere is
> the default texture...
> 
> I thought there was something like a "preserve_textures" modifier, but I
> can't find anything like that in the help. Can anyone suggest what the
> modifier might be?
> 
> BTW doing the cutaway to each element of the machine before texturing is
> not an option. It is just too complex and I rotate/translate a lot of
> parts after texturing!
> 
> Rarius

> 
difference
{
    cylinder
    {
        <-10, 0, 0>
         <10, 0, 0>
        1
    }
    plane{y, 0}
    pigment{colour Red}
}

This way the plane has the same texture as the cylinder.
-- 
Ger


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.